package com.happycat.mobile.model;
 
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
/**
 * Module: UserVisit.java
 *
 * @author liaoyong
 * @since JDK 1.8
 * @version 1.0
 * @date 2020-08-02
 * @Descriptions:
 */
@Data
@TableName(value = "user_visit")
@ApiModel
public class UserVisit  {
	
	
	@TableId(value = "id", type = IdType.INPUT)
	@ApiModelProperty(value="id")
	private Long id;
	
	
	@TableField("account_id")
	@ApiModelProperty(value="被访问者id,查询最近来访，填当前登录用户")
	private Long accountId;
	
	
	@TableField("visit_id")
	@ApiModelProperty(value="访问者id,查询浏览记录，填当前登录用户")
	private Long visitId;
	
	
	@ApiModelProperty(value="",example = "2020-01-01T12:18:48")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@TableField("create_time")
	private Date createTime;
	
	@ApiModelProperty(value="浏览记录")
	@TableField(exist = false)
	private int footmarkNumber;
	
	@ApiModelProperty(value="最近来访")
	@TableField(exist = false)
	private int visitedNumber;
	

	@ApiModelProperty(value="来访的用户信息")
	@TableField(exist = false)
	private UserAccount visitedAccount;
	
}